-- GENERATED SPELL FOR [Bloodmaul Brute] --


function spell0_19991(pUnit, Event) --@Bloodmaul Buzz,Self--
pUnit:FullCastSpellOnTarget(34932,pUnit)
pUnit:RegisterEvent('Sorts_19991', 20325, 1)
end

function spell1_19991(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19991', 589, 1)
end

function spell2_19991(pUnit, Event) --@Debilitating Strike,n/a--
pUnit:FullCastSpellOnTarget(37577,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19991', 675, 1)
end

function spell3_19991(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_19991', 639, 1)
end

function Sorts_19991(pUnit, Event)
local choix_sorts_19991 = math.random(0, 3)
if choix_sorts_19991 == 0 then
pUnit:RegisterEvent('spell0_19991', 1, 1)
end
if choix_sorts_19991 == 1 then
pUnit:RegisterEvent('spell1_19991', 1, 1)
end
if choix_sorts_19991 == 2 then
pUnit:RegisterEvent('spell2_19991', 1, 1)
end
if choix_sorts_19991 == 3 then
pUnit:RegisterEvent('spell3_19991', 1, 1)
end
end

function mob19991_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19991', math.random(1500, 3000), 1)
end

function mob19991_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19991_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19991_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19991, 1, 'mob19991_Action')
RegisterUnitEvent(19991, 2, 'mob19991_Leave')
RegisterUnitEvent(19991, 3, 'mob19991_Kill')
RegisterUnitEvent(19991, 4, 'mob19991_Die')
